<include file="Public:pageheader" />
<table id="mytable" cellspacing="0" align="center">
<caption>Tag : {$Think.lang.list_garden}</caption>
<input class="button" type="button" value="{%add_garden}" onclick="window.location.href='__URL__/add'"/>&nbsp;&nbsp;&nbsp;&nbsp;
<script language="javascript">
function chkinput(form){
	    if(form.keywords.value==""){
		  alert("请输入查询关键字!");
		  form.keywords.select();
		  return false;
		}
	  }
</script>

<form action="__URL__/search" method="post">
<input class="text-input small-input" type='text' name='keywords'id='keywords'/>
<input class="button" type="submit" value="搜索"onclick="return chkinput(form)" />
</form>
<!-- onclick="window.localtion.href='__URL__/search'" -->
<tr>
	<th scope="col">{$Think.lang.number}</th>
	<th scope="col">{$Think.lang.garden_name}</th>
    <th scope="col">{$Think.lang.garden_keywords}</th>
	<th scope="col">{$Think.lang.garden_address}</th>

	<th scope="col">{$Think.lang.operation}</th>
</tr>
<iterate name="list" id="v">
<tr>
<th scope="row" class="spec">{$v.id}</th>
<td><a href='__APP__/district/index/id/{$v.id}'>{$v.name}</a></td>
<td>{$v.keywords}</td>
<td>{$v.address}</td>

<td align="center">
<a href='__APP__/district/add/id/{$v.id}' title="{$Think.lang.addsub}"><img src="__PUBLIC__/images/add.png" alt="{$Think.lang.addsub}" /></a>&nbsp;
<a href="__URL__/edit/id/{$v.id}" title="{$Think.lang.edit}"><img src="__PUBLIC__/images/pencil.png" alt="{$Think.lang.edit}" /></a>&nbsp;
<a href="__URL__/delete/id/{$v.id}" title="{$Think.lang.delete}" onclick="return confirm('你确定要删除吗？')"><img src="__PUBLIC__/images/cross.png" alt="{$Think.lang.delete}" /></a> 							
</td>
</tr>
</eq>
</iterate>

</table><br/>
&nbsp;&nbsp;&nbsp;&nbsp;{$page}

<include file="Public:footer" />